.tab{
  width: 300px;
  display: inline-flex;
}
.tab_item {
  flex: 1;
}
.active{
  border-bottom: 4px solid red;
}